const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token, // 建立token的快捷访问
  name: (state) => state.user.name,
  userId: (state) => state.user.userId, // 建立用户Id的快捷访问
  userInfoId: (state) => state.user.userInfo.user_id, // 建立用户信息Id的快捷访问
  routes: (state) => state.permission.routes, // 建立权限模块的快捷访问
  avatar: (state) => state.user.userInfo.user_pic, // 建立头像的快捷访问
  name: (state) => state.user.userInfo.user_name, // 建立用户姓名的快捷访问
};
export default getters;
